HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: /var/www/kevin-demo/wp-content/plugins/imagify/inc/3rd-party/hosting/pressable.php
<?php
defined( 'ABSPATH' ) || exit;

if ( defined( 'IS_PRESSABLE' ) ) :

	add_filter( 'imagify_site_root', 'imagify_pressable_site_root', IMAGIFY_INT_MAX );
	/**
	 * Filter the path to the site's root.
	 *
	 * @since  1.9.4
	 * @author Grégory Viguier
	 *
	 * @param  string|null $root_path Path to the site's root. Default is null.
	 * @return string
	 */
	function imagify_pressable_site_root( $root_path ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found
		$upload_basedir = trim( wp_normalize_path( WP_CONTENT_DIR ), '/' );
		$upload_basedir = explode( '/', $upload_basedir );
		$upload_basedir = reset( $upload_basedir );

		return '/' . $upload_basedir . '/';
	}

endif;